package com.softtown.modules.organization.service;

import com.github.pagehelper.PageInfo;
import com.softtown.common.service.BaseService;
import com.softtown.modules.organization.dto.CompOrgPosnEmplPageDTO;
import com.softtown.modules.organization.entity.CompOrgEmplPosnEntity;

import java.util.List;

/**
 * @author: Dingyayong
 * @Date: 2019/6/22 09:36
 * @Description:
 */
public interface CompOrgEmplPosnService extends BaseService<CompOrgEmplPosnEntity> {

    /**
     * 查找员工岗位信息
     * @param compId
     * @param emplId
     * @return java.util.List<com.softtown.modules.organization.entity.CompOrgEmplPosnEntity>
     * @Author fuming
     * @Date 2020/5/26 16:36
     */
    List<CompOrgEmplPosnEntity> findListPosnEntity(Long compId, Long emplId);

    /**
     * 更新
     * @param compOrgEmplPosnEntity CompOrgEmplPosnEntity
     * @return
     * @author Dingyayong
     * @date 2019/6/22 9:46
     */
    void updateEmplPosn(CompOrgEmplPosnEntity compOrgEmplPosnEntity);

    /**
     * 根据员工ID和公司ID来查找员工岗位里的岗位ID
     * @param emplId
     * @param compId
     * @return java.util.List<java.lang.Long>
     * @Author fuming
     * @Date 2020/5/26 16:38
     */
    List<Long> getPosnIdByEmplIdAndCompId(Long emplId, Long compId);

    /**
     * 根据员工ID和公司ID来查找员工岗位里的岗位名称
     * @param emplId
     * @param compId
     * @return java.util.List<java.lang.String>
     * @Author fuming
     * @Date 2020/5/26 16:38
     */
    List<String> getPosnNameByEmplIdAndCompId(Long emplId, Long compId);

    /**
     * 获取员工用户Id
     * @param  compOrgPosnEmplPageDTO
     * @return PageInfo<CompOrgPosnEmplVO> pgetPageOrgPosnEmpl
     * @author Dingyayong
     * @date 2019-09-02 00:48
     */
    PageInfo getPageOrgPosnEmpl(CompOrgPosnEmplPageDTO compOrgPosnEmplPageDTO);
}
